type ICommit = (a: string, b?: any) => void;

const map = {
  state: () => {
    organizationMap: { }
  },
  getters: {
    organizationMap: (state: IObj) => state.organizationMap
  },
  mutations: {
    initOrganizationMap(state: IObj, mapObj: IObj | undefined) {
      state.organizationMap = mapObj;
    },
  },
  actions: {
    initOrganizationMap({ commit }: { commit:  ICommit}, mapObj: IObj | undefined) {
      commit('initOrganizationMap', mapObj)
    }
  }
};


export default map;